<?php
if (isset($_COOKIE["cur_user"])) {
    setcookie("cur_user", "", time() - 300);
}
header("location:index.php");
exit();